package com.exam.service.serviceImpl;

import com.exam.entity.ExamPaper;
import com.exam.mapper.ExamPaperMapper;
import com.exam.service.ExamPaperService;

import java.util.List;

public class ExamPaperServiceImpl implements ExamPaperService {

    private ExamPaperMapper examPaperMapper;

    public void setExamPaperMapper(ExamPaperMapper examPaperMapper) {
        this.examPaperMapper = examPaperMapper;
    }

    @Override
    public int add_exam_paper(ExamPaper examPaper) {
        return examPaperMapper.add_exam_paper(examPaper);
    }

    @Override
    public List<ExamPaper> get_all_exam_paper(ExamPaper examPaper) {
        return examPaperMapper.get_all_exam_paper(examPaper);
    }

    @Override
    public int del_exam_paper_by_ep_id(int ep_id) {
        return examPaperMapper.del_exam_paper_by_ep_id(ep_id);
    }

    @Override
    public List<ExamPaper> get_exam_paper_by_s_id_and_level(ExamPaper examPaper) {
        return examPaperMapper.get_exam_paper_by_s_id_and_level(examPaper);
    }

    @Override
    public ExamPaper get_exam_paper_by_ep_id(int ep_id) {
        return examPaperMapper.get_exam_paper_by_ep_id(ep_id);
    }

    @Override
    public int num4() {
        return examPaperMapper.num4();
    }
}
